package com.zyy.controller.frontend;

import com.zyy.entity.dto.Result;
import com.zyy.entity.dto.UserOrder;
import com.zyy.service.test.TestService;
import com.zyy.service.combine.UserOrderService;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import lombok.Getter;
import org.simpleframework.core.annotation.Controller;
import org.simpleframework.inject.annotation.Autowried;

/**
 * @Author: yu.zhou
 * @DateTime: 2023/01/03 14:44
 */
@Controller
@Getter
public class MainPageController {

    @Autowried
    private UserOrderService userOrderService;

    @Autowried("TestServiceImpl")
    private TestService testService;

    public Result<UserOrder> getMainInfo(HttpServletRequest request, HttpServletResponse response) {
        Result<UserOrder> userOrder = userOrderService.getUserOrder(1L);
        return userOrder;
    }
}
